
{[if $pager->numPages gt 1]}

<script type="text/javascript">

    $(function() {

        var options = {
                    bootstrapMajorVersion:3,
                    pageUrl: function(type, page, current) {
                        return "javascript:void(0)";
                    },
                    onPageClicked: function(e, originalEvent, type, page){
                        var url = '{[$baseLink]}{[$p1]}{[$p2]}&p=' + page + "#content";

                        openwin(url, '_self', 800, 800);
                    },
                    itemTexts: function (type, page, current) {
                        switch (type) {
                            case "first":
                                return "第一页";
                            case "prev":
                                return "上一页";
                            case "next":
                                return "下一页";
                            case "last":
                                return "末一页";
                            case "page":
                                return page;
                        }
                    },
                    numberOfPages: 8,
                    currentPage: {[$pager->CurrentPageID]},
                totalPages: {[$pager->numPages]},
        alignment: "center"
    }

    $("#pager").bootstrapPaginator(options);
    });
</script>
{[/if]}